<?php namespace Admin\Controller;
//文章管理
class UpImgController extends CommonController{
	public function UpImg(){
		if(IS_POST){
			$img=Upload::path('./UpImg/')->type('jpg,jpeg,png,bmp')->make();
			Db::table('UpImg')->insert(['url'=>"{$img[0]['path']}",'name'=>"{$img[0]['name']}"]);
//			p($img);
		}
		
		View::make();
	}	
}
















